import java.awt.Graphics;


public class Paddle {
	public static void paintPaddle(){
		int y = (int)(18 * VarHolder.ArrayLength/VarHolder.TileWidth)+VarHolder.MouseX;		
		y -= 3;
		
		
		for(int i = 18 * VarHolder.ArrayLength/VarHolder.TileWidth - 3; i < 19 * VarHolder.ArrayLength/VarHolder.TileWidth - 3; i++){
			
			
			int r = i;
			if(r==(int)(y) || r==(int)(y + 1) || r == (int)(y + 2)){
				VarHolder.TileType[i] = 1; 
				VarHolder.Tile[i] = VarHolder.Blocks[1];
			}else{
				VarHolder.TileType[i] = 5; 
				VarHolder.Tile[i] = VarHolder.Blocks[5];
			}
			//System.out.println(VarHolder.MouseX);
		}
		
		
	}
	
	/*
	public static void paintPaddle (Graphics g){
		g.fillRect(VarHolder.MouseX * VarHolder.TileWidth, 18 * VarHolder.TileHeight, 100, 20);
	}
	*/

}
